﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Memory Usage Tester" Height="350" Width="525">
    <Grid>
        <DockPanel>
            <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
                <Button Content="GC Collect x2" 
                       Name="GCButton"
                       Click="GCButton_Click" />
                <Button Content="Break" 
                        Name="BreakButton"
                        Click="BreakButton_Click" />
            </StackPanel>
            
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Objects currently 'in memory': " />
                <TextBlock Name="CurrentCountText" Text="0" />
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="Number of objects to create: " />
                <TextBox Text="10" Name="NumberText"/>
            </StackPanel>
            <Button Content="Generate"
                    Name="GenerateButton"
                    Click="GenerateButton_Click" />
        </StackPanel>
        
        </DockPanel>
    </Grid>
</Window>
